package com.moonlit.myspring;

public class ProjectJuggler extends Juggler{
    private Poem poem;
    public ProjectJuggler(Poem poem){
        super();
        this.poem = poem;
    }


    public ProjectJuggler(int beanBags,Poem poem){
        super(beanBags);
        System.out.println("while reciting......");
        //调用接口中的方法
        poem.recite();
    }
}
